package org.myspring.dis;

public class TextEditor2 {

	private SpellChecker spellChecker;
	
	public SpellChecker getSpellChecker() {
		return spellChecker;
	}

	public void setSpellChecker(SpellChecker spellChecker) {
		System.out.println("inside TextEditor2 setSpellChecker.");
		this.spellChecker = spellChecker;
	}

	public TextEditor2() {
		System.out.println("inside TextEditor2 consturctor.");
	}
	
	public void spellCheck() {
		spellChecker.checkSpelling();
	}
}
